📌 Модуль Loguru в Python, приятное ведение журналов.
• Loguru - это модуль Python, целью которой является приятное ведение журналов в Python.
• При создании приложения практически всегда лень настраивать регистратор стандартной библиотеки loging, а вместо него используется функция print(). Ведение журналов имеет фундаментальное значение для каждого приложения и упрощает процесс отладки. loguru позволяет начать использовать ведение журнала с самого начала и без настройки. Это так же просто, как loguru import logger.
• Модуль loguru предназначен для того, чтобы сделать ведение логов менее болезненным и плюс ко всему добавляет ряд полезных функций.
Установка модуля loguru в виртуальное окружение (код на картинке).
📌 Модуль Loguru в Python, приятное ведение журналов.
• Loguru - это модуль Python, целью которой является приятное ведение журналов в Python.
• При создании приложения практически всегда лень настраивать регистратор стандартной библиотеки loging, а вместо него используется функция print(). Ведение журналов имеет фундаментальное значение для каждого приложения и упрощает процесс отладки. loguru позволяет начать использовать ведение журнала с самого начала и без настройки. Это так же просто, как loguru import logger.
• Модуль loguru предназначен для того, чтобы сделать ведение логов менее болезненным и плюс ко всему добавляет ряд полезных функций.
Установка модуля loguru в виртуальное окружение (код на картинке).
Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.
Telegram auto-delete message, expiring invites, and more
elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.